package com.hc.service;

import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

/**
 * 测试循环依赖
 *
 * @author huangchao E-mail:fengquan8866@163.com
 * @version 创建时间：2024/6/9 10:09
 */
@Service
@Slf4j
public class BbService {

//    @Autowired
    private AaService aaService;

    public BbService(AaService aaService) {
        log.info("初始化bb");
        this.aaService = aaService;
    }
//    public BbService() {
//        log.info("初始化bb");
//    }

    public String bb() {
        log.info("调用bb");
        return "bb";
    }

    public String aa() {
        log.info("bb代理aa");
        return aaService.aa();
    }
}
